package com.example.demo_mysql_mybatisplus.util.api.configTab.core;


import lombok.Data;

import java.util.Date;

@Data
public class ConfigTabEntity {
    private Long id;
    private Long parentId;

    private Integer version;
    private Boolean isHistory;
    private Integer status;// 0：编辑中，1：已发布

    private Long operator;
    private Date operateTime;

}

/***
 drop table if exists `test`;
 CREATE TABLE `test` (
 `id` bigint(20) NOT NULL,
 `parent_Id` bigint(20) DEFAULT NULL,
 `version` int(3) DEFAULT NULL,
 `is_history` tinyint(1) DEFAULT NULL,
 `status` int(1) DEFAULT NULL,
 `operator` bigint(20) DEFAULT NULL,
 `operate_time` timestamp NULL DEFAULT NULL,
 PRIMARY KEY (`id`),
 UNIQUE KEY `test_un` (`parent_Id`,`version`),
 KEY `test_is_history_IDX` (`is_history`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
 */